#include <iostream>
#include <string>
class Foo
{
public:
	Foo() : i(0) {}
	void operator()()
	{
		std::cout << i++ << std::endl;
	}
private:
	int i;
};
int main(int argc, char** argv)
{
	Foo foo;
	for(int i = 0; i < 10; ++i)
		foo();
	return 0;
}
